package com.ruoyi.system.api;

import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.system.api.domain.SysJob;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * 定时任务
 *
 * @author ruoyi
 */
@FeignClient(value="ruoyi-job",contextId = "JobAddService")
public interface JobAddService
{
    /**
     * 上传文件
     *
     * @param sysJob 文件信息
     * @return 结果
     */
    @PostMapping(value = "/job")
    public AjaxResult addJob(@RequestBody SysJob sysJob);


    @PutMapping(value = "/job")
    public  AjaxResult editJob(@RequestBody SysJob sysJob);

    @PutMapping("/job/to")
    AjaxResult edit2(@RequestBody SysJob job);


}
